<?php

/**
 * @filename ModuleInit.php 
 * @encoding UTF-8 
 * @author 徐小军
 * @link http://www.okd100.com
 * @copyright 南昌欧科达科技有效公司 
 * @datetime 2016-7-20  17:49:45
 * @version 1.0
 * @Description
 */


namespace app\common\behavior;
use think\Request;
class ModuleInit
{

    public function run(&$param)
    {
        //action初始化
        $this->initialization();
    }

    //初始化
    private function initialization()
    {
        $request = Request::instance();
        //全局常量
        define('CONTROLLER_NAME', $request->controller());
  
        define('ACTION_NAME', $request->action());
    }

}